import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../components/ExampleComponent.vue'

Vue.use(Router)

// export default new Router({
//     routes: [
//         {
//             path: '/',
//             name: 'HelloWorld',
//             component: HelloWorld
//         },
//         {
//             path: '/admin-permissions',
//             name: 'admin-permissions.index',
//             component: require('../components/adminPermissions/index.vue')
//         },
//     ]
// })

export default [
    {
        path: '/admin-permissions',
        name: 'admin-permissions',
        component: require('../components/adminPermissions/index.vue')
    },
    {
        path: '/admin-roles',
        name: 'admin-roles',
        component: require('../components/adminRoles/index.vue')
    },
    {
        path: '/admin-users',
        name: 'admin-users',
        component: require('../components/adminUsers/index.vue')
    },
    {
        path: '/permissions',
        name: 'permissions',
        component: require('../components/permissions/index.vue')
    },
    {
        path: '/roles',
        name: 'roles',
        component: require('../components/roles/index.vue')
    },
    {
        path: '/users',
        name: 'users',
        component: require('../components/users/index.vue')
    },
    {
        path: '/news-sorts',
        name: 'news-sorts',
        component: require('../components/newsSorts/index.vue')
    },
    // 新闻
    {
        path: '/news',
        name: 'news',
        component: require('../components/news/index.vue')
    },
    {
        path: '/news/create',
        name: 'news.create',
        component: require('../components/news/create.vue')
    },
    {
        path: '/news/:id',
        name: 'news.update',
        component: require('../components/news/edit.vue')
    },
    // 古桥
    {
        path: '/bridges',
        name: 'bridges',
        component: require('../components/bridges/index.vue')
    },
    {
        path: '/bridges/create',
        name: 'bridges.create',
        component: require('../components/bridges/create.vue')
    },
    {
        path: '/bridges/:id',
        name: 'bridges.update',
        component: require('../components/bridges/edit.vue')
    },

    // 古桥年代
    {
        path: '/bridge-ages',
        name: 'bridge-ages',
        component: require('../components/bridgeAges/index.vue')
    },

    // 古桥类型
    {
        path: '/bridge-types',
        name: 'bridge-types',
        component: require('../components/bridgeTypes/index.vue')
    },

    // 古桥级别
    {
        path: '/bridge-levels',
        name: 'bridge-levels',
        component: require('../components/bridgeLevels/index.vue')
    },
]
